#pragma once
#include "stdafx.h"
#include"SaveCount.h"
#include"Controller.h"
#include"Date.h"
#include <iostream>
#include<vector>
#include<ctime>
#include<string>
#include<iomanip>
#include<stdexcept>

using namespace std;
class BankSystem
{
public:
	vector<Controller> Center;
	string usernow;
	tmDate nDate;
	CEdit *textbox;
	Controller *Now=NULL;
	int WriteIntoEditer(string into)
	{
		std::string getsNOW;
		CString tc;
		textbox->GetWindowTextW(tc);
		getsNOW = CT2A(tc.GetString());
		getsNOW += into;
		CString bc(getsNOW.c_str());
		textbox->SetWindowTextW(bc);
		return 0;
	}
	int  Login(string username, string password);
	BankSystem();
	static int Beginer(BankSystem &a);
	int SignUp(string username, string password);
	int Welcome();
};